<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>par_trajectory_planning: /home/wouter/ros_packages/thp-pj2-08/par_trajectory_planning/src/par_planning.cpp File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>

<table border="0">
<tr><td valign="top" style="border-right: 1px solid #333; padding-right: 10px;" >
<p>
Project: <a href="http://ros.org/wiki/par_trajectory_planning">par_trajectory_planning</a>
</p>
<p>
License: BSD
</p>
<p>
Dependencies: 
<ul>
  <li>std_msgs</li>
  <li>roscpp</li>
</ul>
</p>
<p>
Used by:
None<br />
</p>
<p>
<a href="../../index.html">All Packages</a>
</p>

</div>
</td><td valign="top" style="padding-left: 10px;" >
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<h1>/home/wouter/ros_packages/thp-pj2-08/par_trajectory_planning/src/par_planning.cpp File Reference</h1>  </div>
</div>
<div class="contents">
<code>#include &lt;iostream&gt;</code><br/>
<code>#include &lt;ros/ros.h&gt;</code><br/>
<code>#include &lt;<a class="el" href="commands_8h_source.html">par_trajectory_planning/commands.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="steppermotor_8h_source.html">par_trajectory_planning/steppermotor.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="config_8h_source.html">par_trajectory_planning/config.h</a>&gt;</code><br/>
<code>#include &lt;cerrno&gt;</code><br/>

<p><a href="par__planning_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="par__planning_8cpp.html#a55268b4735960b989898bc4f4c3c1ead">commands</a> (const <a class="el" href="structpar__trajectory__planning_1_1commands__.html">par_trajectory_planning::commands</a> &amp;cmd)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This is the callback function responsible for receiving and processing commands from the user.  <a href="#a55268b4735960b989898bc4f4c3c1ead"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="par__planning_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a> (int argc, char **argv)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="par__planning_8cpp.html#a9e4984bb4763bc6694e8a9b6a624f79d">QUEUE_SIZE</a> = 1000</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classStepperMotor.html">StepperMotor</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="par__planning_8cpp.html#a38b38217175fdd503e34b3e7c682f577">stepperMotor</a></td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a55268b4735960b989898bc4f4c3c1ead"></a><!-- doxytag: member="par_planning.cpp::commands" ref="a55268b4735960b989898bc4f4c3c1ead" args="(const par_trajectory_planning::commands &amp;cmd)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void commands </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structpar__trajectory__planning_1_1commands__.html">par_trajectory_planning::commands</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>cmd</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This is the callback function responsible for receiving and processing commands from the user. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>cmd</em>&nbsp;</td><td>Object with controller instructions. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="par__planning_8cpp_source.html#l00019">19</a> of file <a class="el" href="par__planning_8cpp_source.html">par_planning.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a3c04138a5bfe5d72780bb7e82a18e627"></a><!-- doxytag: member="par_planning.cpp::main" ref="a3c04138a5bfe5d72780bb7e82a18e627" args="(int argc, char **argv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>argv</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><p>Important note! You cannot move the initialization of the modbus interface inside the class' constructor. I don't know the exact reason for this, but GDB shows some memory leakage and initialization of the object fails.</p>
</p>

<p>Definition at line <a class="el" href="par__planning_8cpp_source.html#l00054">54</a> of file <a class="el" href="par__planning_8cpp_source.html">par_planning.cpp</a>.</p>

</div>
</div>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="a9e4984bb4763bc6694e8a9b6a624f79d"></a><!-- doxytag: member="par_planning.cpp::QUEUE_SIZE" ref="a9e4984bb4763bc6694e8a9b6a624f79d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int <a class="el" href="par__planning_8cpp.html#a9e4984bb4763bc6694e8a9b6a624f79d">QUEUE_SIZE</a> = 1000<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Author: W. van Teijlingen &lt;<a href="mailto:wouter.vanteijlingen@student.hu.nl">wouter.vanteijlingen@student.hu.nl</a>&gt; </p>

<p>Definition at line <a class="el" href="par__planning_8cpp_source.html#l00012">12</a> of file <a class="el" href="par__planning_8cpp_source.html">par_planning.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a38b38217175fdd503e34b3e7c682f577"></a><!-- doxytag: member="par_planning.cpp::stepperMotor" ref="a38b38217175fdd503e34b3e7c682f577" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classStepperMotor.html">StepperMotor</a>* <a class="el" href="par__planning_8cpp.html#a38b38217175fdd503e34b3e7c682f577">stepperMotor</a><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="par__planning_8cpp_source.html#l00013">13</a> of file <a class="el" href="par__planning_8cpp_source.html">par_planning.cpp</a>.</p>

</div>
</div>
</div>
</td></tr></table>

<hr size="1"><div style="align: right;">
<a href="http://ros.org/wiki/par_trajectory_planning">par_trajectory_planning</a><br />
Author(s): Wouter van Teijlingen</br />
<small>autogenerated on Wed Jun 8 2011 17:11:45</small>
</div>
</body>
</html>
